package com.jsbj.user.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jsbj.user.entities.SysRole;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 角色信息表 服务类
 * </p>
 *
 * @author jsbj
 * @since 2022-03-07
 */
public interface ISysRoleService extends IService<SysRole> {

    List<String> getRoleTypes(String userId, String tenantCode);

    Integer add(SysRole sysRole) throws Exception;

    SysRole detail(String id);

    Integer delete(String id) throws Exception;

    IPage<SysRole> getList(String inParam);

    Integer startUsing(String id);

    List<SysRole> getRoleListByTenantCodeAndOrgCode(String tenantCode, String orgCode);

    SysRole queryRoleByEquId(String equId);

    List<SysRole> getRoleListByTenantCode(String tenantCode);

    SysRole getByCode(String roleCode);

    SysRole dealExpertRole();

    Map<String, Object> queryRoleByProSecUser(String proCode, String orgId, String uId);
}
